package model;

import model.Score;
import model.Smurf;

/**
 * This class will represent each player in the game.
 * 
 * @author Friden
 */
public class Player{

	private String name;
	private Score score;
	private int id;
	private Smurf smurf = new Smurf("warvik", 50, 50, 0, 0);
	
	public Player(int id, String name){
		this.name = name;
		this.id = id;
	}
	
	public Player(int id, String name, Smurf smurf){
		this.name = name;
		this.id = id;
		this.smurf = smurf;
	}
	
	/**
	 * @return	Players score
	 */
	public Score getScore(){
		return score;
	}
	
	@Override
	public String toString(){
		return name;
	}
	
	/**
	 * @return Players id
	 */
	public int getID(){
		return id;
	}

	/**
	 * Assigns a smurf to the player
	 */
	public void setSmurf(){
		smurf = new Smurf(name);
	}
	
	/**
	 * @return The smurf belonging to the player
	 */
	public Smurf getSmurf(){
		return this.smurf;
	}
	
}
